#ifndef CIRCLE_H
#define CIRCLE_H

#include "myshape.h"

class Circle : public MyShape
{
public:
    Circle(const QPointF &center, qreal radius, const QColor &color);

    QRectF boundingRect() const override;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;

    void setRadius(qreal newRadius) override { radius_ = newRadius; }

    bool isPointNear(const QPointF &point) const override;
    void highlightControlPoints(const QPointF &point) override;

private:
    qreal radius_;
    bool centerHighlighted_ = false;
    bool edgeHighlighted_ = false;
};

#endif // CIRCLE_H
